class UserService {

    boolean transactional = true

    def Person queryPerson(String username, String password) {
       def person = Person.findByUsernameAndPassword(username,password)

        if(!person){
            return null
        } else{
            return person
        }       
    }
}
